package com.wtwd.device.protocol;

import lombok.Builder;

import java.io.Serializable;

@Builder
public class AppProtocol implements Serializable {


    private static final long serialVersionUID = 29699877891349874L;

    private String imei;

    private String cmdName;

    private Object data;

    private int state;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getCmdName() {
        return cmdName;
    }

    public void setCmdName(String cmdName) {
        this.cmdName = cmdName;
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public AppProtocol() {
    }

    public AppProtocol(String imei, String cmdName, Object data) {
        this.imei = imei;
        this.cmdName = cmdName;
        this.data = data;
    }

    public AppProtocol(String imei, String cmdName, Object data, int state) {
        this.imei = imei;
        this.cmdName = cmdName;
        this.data = data;
        this.state = state;
    }

    @Override
    public String toString() {
        return "AppProtocol{" +
                "imei='" + imei + '\'' +
                ", cmdName='" + cmdName + '\'' +
                ", data=" + data +
                ", state=" + state +
                '}';
    }
}
